package com.hang.gymmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hang.gymmanager.entity.OrderEntity;
import com.hang.gymmanager.req.PageOrderReq;
import com.hang.gymmanager.res.PageOrderRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface OrderMapper extends BaseMapper<OrderEntity> {
    Page<PageOrderRes> pageAllOrder(@Param("req") PageOrderReq req,
                                    Page page);
}
